//
//  PAAsynMedialButton.h
//  PAMobileWallet
//
//  Created by Gavin Zhang on 7/26/13.
//  Copyright (c) 2013 平安付. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PAMediaAsynManager.h"
#import <AVFoundation/AVFoundation.h>
@interface PAAsynMedialButton : UIButton<PAMediaAsynDelegate,AVAudioPlayerDelegate>
{
    
}

@property(nonatomic, copy)NSString *uniqueId;
@property(nonatomic, copy)NSString *mediaUrl;
@property(nonatomic, assign)float   cornerRadius;
@property(nonatomic, assign)int tradeDirection;

@property (nonatomic, strong) AVAudioPlayer * player;

- (id)initWithUrl:(NSString *)url;
- (void)stopUpdate;
- (void)showTrackTimeIfPossible:(int) tradeDirection;
@end
